<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
{{fullName}}
		</div>
		<script src="./node_modules/vue/dist/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let app = new Vue({
				el: '#app',
				data: {
					firstName: 'Foo',
					lastName: 'Bar',
					fullName: 'Foo Bar'
				},
				watch: {
					firstName: function(val) {
						this.fullName = val + ' ' + this.lastName
					},
					lastName: function(val) {
						this.fullName = this.firstName + ' ' + val
					}
				}

			})
		</script>
	</body>
</html>
